package com.example.utils;

import io.netty.handler.codec.base64.Base64Encoder;
import org.apache.commons.codec.EncoderException;
import org.apache.commons.codec.binary.Base64;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class Util {

    public static void main(String[] args) {
//        PasswordEncoder passwordEncoder = new BCryptPasswordEncoder();
//        String encode = passwordEncoder.encode("admin");
        Base64 base64 = new Base64();
        try {
            Object encode = base64.encode("client:secret");
            System.out.println(encode);
        } catch (EncoderException e) {
            e.printStackTrace();
        }

//        System.out.println(encode);
    }
}
